﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Facebook.Api.Controllers
{
    public partial class FeedController
    {
        /// <summary>Publishes a Mini-Feed story to the Facebook Page corresponding to the <code>page_actor_id</code> parameter.</summary>
        public FacebookResponse<Boolean> PublishTemplatizedAction(PageActionStory template)
        {
            Dictionary<String, Object> args = new Dictionary<String, Object>(template.GetArgs());
            var response = this.ExecuteRequest<Boolean>("Feed.publishTemplatizedAction", args);
            return response;
        }

        public FacebookResponse<Boolean> PublishUserAction(UserActionStory data)
        {
            Dictionary<String, Object> args = new Dictionary<String, Object>(data.GetArgs());
            var response = this.ExecuteRequest<Boolean>("Feed.publishUserAction", args);
            return response;
        }
    }
}
